package com.itheima;/**
* @Author: Ethan Yankang
*
* @Program: JAVA核心技术
*
* @Date: 2024-08-09 17:05
**/
class Example {
    void display(int a) {
        System.out.println("Argument: " + a);
    }

    void display(String a) {
        System.out.println("Argument: " + a);
    }
}

public class OverLoad {
    public static void main(String[] args) {
        Example ex = new Example();
        ex.display(10);     // 输出: Argument: 10
        ex.display("Hello"); // 输出: Argument: Hello
    }
}
